# $Id: PKGBUILD 65421 2012-02-21 03:33:03Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Roberto Alsina <ralsina@kde.org>

pkgname=txt2man
pkgver=1.5.6
pkgrel=3
pkgdesc="Converts flat ASCII text to man page format"
arch=('any')
url="http://mvertes.free.fr/"
license=('GPL')
depends=( 'bash' 'gawk')
source=(http://mvertes.free.fr/download/txt2man-$pkgver.tar.gz)
md5sums=('f301b3dc1872fab1b7740f9f69ff281b')

build() {
  cd $srcdir/txt2man-$pkgver
  PATH=./:$PATH make prefix=$pkgdir/usr install
  mkdir -p $pkgdir/usr/share/man/
  mv $pkgdir/usr/man $pkgdir/usr/share/
}
